package com.jwx.mycar.mapper;




import com.jwx.mycar.entity.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
//注意：别忘了此注解 注入Bean
public interface UserMapper {

    public String selectPasswordByUsername(String username);
    List<User> hello() throws Exception;

   void addUser(String userId, String username, String password, String email);


    User selectUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    boolean deleteUserById(String userId);

    boolean userExist(String username);

    boolean emailExist(String email);

    boolean updateUser(String email, String newPassword);

    String selectPasswordByEmail(String email);

    String selectUsernameByEmail(String email);

    User selectUserByUsername(String username);
}